const joi = require('joi')

const a_name = joi.string().required()
const a_info = joi.string().required()
const a_creater_id = joi.number().required()
const a_creater_date = joi.date().required()
const authority_id = joi.number().required()

// 更新权限
exports.updateActivity_schema = {
	body: {
		a_name,
		a_info,
		a_creater_id,
		a_creater_date,
		authority_id
	}
}

// 添加权限
exports.addActivity_schema = {
	body: {
		a_name,
		a_info,
		a_creater_id,
		a_creater_date
	}
}

// 删除权限
exports.deleteActivity_schema = {
	body: {
		authority_id
	}
}